package springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;


@Controller
public class errorController {

    @GetMapping("/404")
    public String noFond(String data) {
        return "error/404";
    }

    @GetMapping("/500")
    public String serverError(String data) {
        return "error/500";
    }

    @GetMapping("/unauthorized")
    public String unauthorized(String data) {
        return "error/unauthorized";
    }
}
